﻿@model IEnumerable<VietPremier.Areas.AdminCP.Models.AdminChatOnlineModel>
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/AdminCP/Views/Shared/AdminLayout.cshtml";
}

<script src="@Url.Content("~/Content/cssAdmin/js/plugins/jquery-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/cssAdmin/js/plugins/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/cssAdmin/js/custom/tables.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/cssAdmin/js/plugins/jquery.dataTables.min.js")" type="text/javascript"></script>

<script type="text/javascript">
    jQuery(document).ready(function () {
        //LoadTable();
        $('#nofSuccess').hide(); // an thong bao
        $('#nofError').hide();
    });

    function alertMsg(msg) {
        $('#nofSuccess').hide();
        $('#nofError').show();
        $('#msgNofError').text(msg);


    }

</script>
<div class="maincontentinner">

    <ul class="maintabmenu">
        <li class="current"><a href="@Url.Action("Index", "AdminChatOnline")" >Quản lý danh sách tư vấn trực tuyến</a></li>
      
    </ul>
    <!--maintabmenu-->

    <div class="notification msgsuccess" style="display: none" id="nofSuccess">
        <a class="close"></a>
        <p id="msgNofSuccess">This is a success message.</p>
    </div>
    <!-- notification msgsuccess -->

    <div class="notification msgerror" style="display: none" id="nofError">
        <a class="close"></a>
        <p id="msgNofError">This is an error message.</p>
    </div>
    <!-- notification msgerror -->

    <div class="contenttitle radiusbottom0">
        <h2 class="table"><span>Danh sách tư vấn trực tuyến</span></h2>
    </div>
    <!--contenttitle-->

    <table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="dyntable">
        <colgroup>
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />

        </colgroup>
        <thead>
            <tr>
                <th class="head0">Index</th>
                <th class="head1">Tên</th>
                <th class="head0">Yahoo</th>
                <th class="head1">Sky</th>
                <th class="head0">Vị trí</th>
                <th class="head1">Thao tác</th>

            </tr>
        </thead>
        <tfoot>
            <tr>
                <th class="head0">Index</th>
                <th class="head1">Tên</th>
                <th class="head0">Yahoo</th>
                <th class="head1">Sky</th>
                <th class="head0">Vị trí</th>
                <th class="head1">Thao tác</th>
            </tr>
        </tfoot>
        <tbody>
            @{
                int stt = 0;
                foreach (var item in Model)
                {
                    stt++;
                <tr class="gradeX">
                    <td>@stt</td>
                    <td>@item.Name</td>
                    <td>@item.Yahoo</td>
                    <td>@item.Skype</td>
                    <td>@item.Position</td>
                    <td class="center">
                        @Html.ActionLink("Edit", "Edit", new { id = @item.Id })

                    </td>
                </tr>
                }
            }
        </tbody>
    </table>

</div>
<!--maincontentinner-->
